package com.cyy.base.util;

import com.cyy.util.RequestUtil;
import io.jsonwebtoken.Claims;

import javax.servlet.http.HttpServletRequest;

/**
 * 获取前端页面获取参数工具
 * author Chenyuyi
 * date 2021/12/21  10:24
 */
public class FreemarkerGetArgsUtils {

    public static Claims getLoginUser(){
        HttpServletRequest request = RequestUtil.getRequest();
        return (Claims) request.getAttribute("user_claims");
    }
}
